/*************************************************************************
	> File Name: shdev.h
	> Author: yuarmy
	> Mail: yuarmy@126.com 
	> Created Time: Thu 07 Aug 2014 05:05:59 AM PDT
 ************************************************************************/

#ifndef SHDEV_H_
#define SHDEV_H_
#ifdef  __cplusplus
extern "C" {
#endif
#include <inttypes.h>
typedef struct tagSHDev {
  int8_t  ipaddr[4]; // 
  int16_t port; // socket listen port
  int32_t backlog; // socket listen wait queue max num
  int32_t baud; // serial port
} SHDEV_T;

int32_t InitSHDev(SHDEV_T *shdev);
int32_t RunSHDev(SHDEV_T *shdev);
int32_t DeinitSHDev(SHDEV_T *shdev);
#ifdef __cplusplus
}
#endif
#endif // SHDEV_H_
